public class Homework21 {
    public static void main(String[] args) {
        PassObject passObject = new PassObject();
        Circle01 circle01 = new Circle01();
        passObject.printAreas(circle01, 5);

    }
}

class Circle01 {
    double radius;

    public double findArea() {
        return Math.PI * radius * radius;
    }
}

class PassObject {
    public void printAreas(Circle01 c, double times) {
        for (double i = 1; i <= times; i++) {
            c.radius = i;
            System.out.println("半径为：" + i + " 所对应的圆面积为：" + c.findArea());
        }
    }
}